
layui.use(['form', 'admin', 'ax','laydate','laytpl','upload'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;
    var laydate = layui.laydate;
    var laytpl = layui.laytpl;
    var upload = layui.upload;

    // 合同预计进厂时间
    laydate.render({
        elem: '#htTime',
        trigger: 'click',
    });
    laydate.render({
        elem: '#htTime1',
        trigger: 'click',
    });

    //时间范围
    laydate.render({
        elem: '#ktkqtime'
        ,type: 'time'
        ,trigger: 'click',
    });

    laydate.render({
        elem: '#ktend'
        ,type: 'time'
        ,trigger: 'click',
    });

// 接铺时间
//     laydate.render({
//         elem: '#jpTime',
//         trigger: 'click',
//     });
//     laydate.render({
//         elem: '#jpTime1',
//         trigger: 'click',
//     });
    //返回按钮
    $("#backupPage").click(function () {
        let _temp = admin.getTempData('indexTabs')
        let curr = 1
        _temp.map((item, i) => {
            if(item.menuId == '/project') {
                curr = _temp[i].currPage ? _temp[i].currPage : 1
            }
        })
        window.location.href = Feng.ctxPath + '/project#!fenye=' + curr
    });

});
